package datasource

import "gitee.com/kristas/booting-go/framework/core/statement/types"

type DataSourceProperties struct {
	types.AutoConfigure `name:"datasource_properties" prefix:"application.datasource"`
	Type                string `yaml:"type"`
	Driver              string `yaml:"driver"`
	ConnMaxLifeTime     int64  `yaml:"max_life_time"`
	ConnMaxIdleTime     int64  `yaml:"max_idle_time"`
	MaxIdleConns        int    `yaml:"max_idle_conn"`
	MaxOpenConns        int    `yaml:"max_open_conn"`
	Url                 string `yaml:"url"`
	Username            string `yaml:"username"`
	Password            string `yaml:"password"`
}
